package com.store.app.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.store.app.R;

public class Specialsell_newAdapter extends BaseAdapter {
    private Context context;

    public Specialsell_newAdapter(Context context) {
        this.context = context;
           }

    @Override
    public int getCount() {
        return 2;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(final int position, View convertView, ViewGroup parent) {

        ViewHolder holder = null;
        if (convertView == null) {
            holder = new ViewHolder();
            convertView = LayoutInflater.from(context).inflate(R.layout.item_specialsell, null);
            holder.tv_title = (TextView) convertView.findViewById(R.id.item_task_title);
            holder.tv_txt = (TextView) convertView.findViewById(R.id.item_task_txt);
            holder.tv_money = (TextView) convertView.findViewById(R.id.item_task_money);
            holder.tv_money_type = (TextView) convertView.findViewById(R.id.item_task_money_tpe);
            holder.tv_date = (TextView) convertView.findViewById(R.id.item_task_date);
            holder.relat_title_no = (RelativeLayout) convertView.findViewById(R.id.item_task_title_no);
            holder.relat_title_no_tv = (TextView) convertView.findViewById(R.id.item_task_title_no_tv2);
            convertView.setTag(holder);
        } else {
            holder = (ViewHolder) convertView.getTag();
        }

        return convertView;
    }


    public  class ViewHolder {
        public TextView tv_title;               //标题
        public TextView tv_txt;         //内容
        public TextView tv_money;            //奖励金额
        public TextView tv_date;   //截止时间
        public TextView tv_money_type;
        public RelativeLayout relat_title_no;
        public TextView relat_title_no_tv;

    }



}
